<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=1.4.2'></script>
<script type="text/javascript" src="<?php echo URL::base() ?>media/js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<?php echo URL::base() ?>media/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo URL::base() ?>media/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />

<script type="text/javascript">    
    $(document).ready(function() {
        $("a.popup").fancybox({
            'autoScale'			: true,
            'transitionIn'		: 'none',
            'transitionOut'		: 'none',
            'type'			: 'iframe',
            'padding'                   : '0'
        });
    });
</script>

<?php include(Kohana::find_file('views', 'resources')); ?>
<img src="<?php echo URL::base() . 'media/' ?>images/bla.gif" />
<?php
foreach ($places as $key => $place) {
    $building = ORM::factory('buildings', $place->building_id);
    echo '<a href="' . URL::site('building', TRUE, FALSE) . '/show/' . $place->town_id . '_' . $place->place_id . '" class="popup">' . $building->name . '</a><br />';
    echo '<hr>';
}?>